package com.dream.dao;

import com.dream.pojo.Department;

import java.util.List;

public interface DepartmentDao {
    /**
     * 查询条数
     * @param deptName
     * @return
     */
    long totalCount(String deptName);

    List<Department> list(String deptName,long pageIndex,long pageSize);

    int add(Department department);

    Department findById(String deptId);

    int update(Department department);

    int deleteById(String deptId);

    List<Department> getAllDept();
}
